package com.wm.task2.vo;

import java.time.format.DateTimeFormatter;
import java.util.Date;

public class Post {
    private Account account;
    private String title;
    private String content;
    private String time;
    private final static DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm:ss");

    public Post(Account account, String title, String content, String time) {
        this.account = account;
        this.title = title;
        this.content = content;
        this.time = time;
    }

    public Post() {
    }
    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

}
